﻿/*------------------------------------------------
// File Description: BadType DataBase Entity
// Author:			 Crane
// Create Time:		 2020-10-25 14:34:14
//------------------------------------------------*/

using System.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 不良大类
    /// </summary>
    [Table(nameof(BadType))]
    public class BadType : BaseEntity
    {
        private string _typeCode = string.Empty;
        private string _typeName = string.Empty;

        #region Public Property

        ///<Summary>
        /// 类型代码
        ///</Summary>
        public string TypeCode
        {
            get { return string.IsNullOrWhiteSpace(_typeCode) ? string.Empty : _typeCode; }
            set { _typeCode = value; }
        }

        ///<Summary>
        /// 类型名称
        ///</Summary>
        public string TypeName
        {
            get { return string.IsNullOrWhiteSpace(_typeName) ? string.Empty : _typeName; }
            set { _typeName = value; }
        }

        ///<Summary>
        /// 排序序号
        ///</Summary>
        public int SortNo { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual DbSet<BadType> BadTypes { get; set; }
    }
}